import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { OrderService } from './order.service';
import { OrderController } from './order.controller';
import { Order } from '../entity/order.entity';
import { OrderItem } from '../entity/order-item.entity';
import { ProductSku } from '../entity/product-sku.entity';
import { Shipping } from '../entity/shipping.entity';
import { PaymentRecord } from '../entity/payment-record.entity';
import { Payment} from '../entity/payment.entity';
import { OrderNumberService } from '../order-number/order-number.service';
import { Repository } from 'typeorm/repository/Repository';
import { FormatService } from '../format/format.service';
@Module({
  imports: [Repository,
    TypeOrmModule.forFeature([
      Order,
      OrderItem,
      ProductSku,
      Shipping,
      Payment,
      PaymentRecord,

    ]),
  ],
  controllers: [OrderController],
  providers: [OrderService,OrderNumberService,FormatService],
  exports: [OrderService],
})
export class OrderModule {}
